<!-- Start asides -->
<!--#aside-x-->
<?php do_action('narato_sidebar_start'); ?>
<section id="aside-x" class="col-aside col-aside-x">
	<?php if (function_exists('get_flickrrss')) { ?>
	<section class="widget widget_flickrRSS" style="border-bottom: none;">
		<h3 class="widget-hd">Flickr PhotoStream</h3>
		<div class="widget-bd">
			<ul>
			<?php get_flickrrss(); ?> 
			</ul>
		</div>
	</section>
	<?php } ?>

	<?php if (function_exists('aktt_latest_tweet')) { ?>
	<section class="widget">
		<h3 class="widget-hd">Latest tweets</h3>
		<div class="widget-bd">
		<?php aktt_latest_tweet(); ?>
		</div>
	</section>
	<?php } ?>

	<!--Start Dynamic Sidebar -->
	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
	<?php endif; ?>
	<!--End Dynamic Sidebar -->	
</section> 
<?php do_action('narato_sidebar_end'); ?>

<!--#aside-y-->
<?php
$layout = narato_layout_type();
$show_1stcolumn = ($layout != 'g-col1') || ($_GET['preview'] == 1);
$show_2ndcolumn = (($layout != 'g-col1') && ($layout != 'g-col2-mr') && ($layout != 'g-col2-ml') ) || ($_GET['preview'] == 1);
if($show_2ndcolumn) {
	include(TEMPLATEPATH . '/sidebar2.php'); 
}

?>
<!-- End asides -->

